home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Taifun / Taifun 185 (1991-12-10)(Manewaldt, A.)(DE)(PD).zip / Taifun 185 (1991-12-10)(Manewaldt, A.)(DE)(PD).adf / PowerP-Tools / PPMore.doc / PPMore.doc
Text File  |  1991-11-30  |  22KB  |  489 lines

  1.  
  2.  
  3.  
  4.                             PPMore 2.0 User Manual
  5.  
  6.                                  Oct 6, 1991
  7.  
  8.  
  9.  
  10. Preface
  11. =======
  12.  
  13. The programs and files in this distribution are freely distributable, but are
  14. also copyright (c) Nico François.  They may be freely distributed as long as
  15. no more than a nominal fee is charged to cover time and copying costs.
  16.    No commercial usage is permitted without written permission from the
  17. author.  Everything in this distribution must be kept together, in original
  18. unmodified form.
  19.    The above is generally known as freeware.
  20.  
  21.  
  22.    Coverdisks or diskmagazines need written permission of UGA to offer the
  23. Powerpacker utilities or Powerpacker/Reqtools libraries on their disk. For
  24. commercial use please read the copyright file on your original PP disk.
  25.  
  26.    If you have suggestions or remarks about this program, or if you find
  27. any bugs, please let me know.
  28.  
  29.    Write to the following address:
  30.  
  31.                                 Nico François
  32.                                 Corbielaan 13
  33.                                 B-3060 Bertem
  34.                                 BELGIUM
  35.  
  36.    PPMore 2.0 requires AmigaDOS Release 2 (Kickstart & Workbench 2.0) to run.
  37.  
  38.  
  39. Contents
  40. ========
  41.  
  42. 1. An introduction
  43.  
  44. 2. Usage
  45.  
  46. 3. Control
  47.  
  48. 4. Using PPMore from other programs
  49.  
  50.  
  51. 1. An introduction
  52. ==================
  53.  
  54. This program was written to complement one of my other utilities,
  55. PowerPacker (a command and data cruncher).  It is used to read normal ascii
  56. text files or text files crunched with PowerPacker.  The program itself is
  57. about 13K long and when you know you save about 60% when you crunch a text
  58. file, you can see that this could save a lot of space on your disks.
  59.  
  60.    PPMore was written as a more replacement (as you could have guessed :-),
  61. so I tried to keep the keyboard commands the same as well as adding some new
  62. ones.  There are two main differences between PPMore and More, PPMore uses
  63. gadgets and it always loads the complete file in memory (More only loads part
  64. of the file and will load the rest when needed).  If you can live with these
  65. differences, you can replace More with PPMore anywhere you want.
  66.  
  67.    PPMore uses 'powerpacker.library' and 'reqtools.library', so make sure
  68. these are present in your Libs: directory.  Double-click 'Install_libs' for
  69. an automatic installation.
  70.  
  71.    If you haven't got PowerPacker you are of course missing one of the main
  72. features of this program.  PowerPacker is available as shareware (up to
  73. version 2.3b) or as a commercial program (version 4.0a).  Order a copy from
  74. UGA, P.O.Box 881, 3700 AW Zeist, The Netherlands.  The commercial version
  75. offers several enhancements like 40 to 50 times faster crunching, overlay
  76. support, an ARexx port, and much more.
  77.  
  78.  
  79. 2. Usage
  80. ========
  81.  
  82. PPMore can be used in several different ways.
  83.  
  84. - First of all via the CLI:
  85.  
  86.    If you enter 'PPMore ?' you will get a standard AmigaDOS template.  Enter
  87. 'PPMore ??' for more information.  You use PPMore like this:
  88.  
  89.    PPMore [<file|dir>] [TABS n] [PUBSCREEN <name|@addr|@*>]
  90.                        [MEMVIEW m,l,f[,n]]
  91.  
  92.    If you provide a file the program will load and display it.  Files
  93. crunched using PowerPacker 2.0 or higher will be automatically decrunched by
  94. PPMore.  If the file was encrypted you will be prompted for the password.
  95.  
  96.    Options:
  97.  
  98.       TABS n     Select tabsize, default is 8.  Also see the Settings menu.
  99.       PUBSCREEN  Specify the public screen (by name) where PPMore should open
  100.                  its main window.  Note that only real public screens will
  101.                  be recognized, not any screen.  If you do not specify this
  102.                  option the default public screen will be used (normally
  103.                  the Workbench).
  104.  
  105.    The MEMVIEW option and other uses of the PUBSCREEN option are explained in
  106. section 4.
  107.  
  108.    PPMore can be made resident so it doesn't have to be loaded every time
  109. you use it, use the C: Resident command for this.  You can't make PPMore
  110. resident when it is crunched!!  The file is supplied as an uncrunched command
  111. file with the pure bit set.
  112.    If you enter PPMore without options, you will be presented with a file
  113. requester.  Entering PPMore with a directory instead of a file as an argument
  114. will also get you a file requester, but it will be positioned in the directory
  115. you specified.
  116.  
  117.    Examples:
  118.  
  119.      o PPMore DOCS:PPMore.doc TABS 4
  120.  
  121.          Load and display 'DOCS:PPMore.doc' and use a tabsize of 4 spaces.
  122.  
  123.      o PPMore PUBSCREEN "Public Screen" TABS=6 AUTO:
  124.  
  125.          Put up file requester (in directory AUTO:) and open window on
  126.        the public screen named 'Public Screen' (if found).  Quotes are
  127.        used to pass a screentitle with spaces.  Use tabsize of 6.
  128.  
  129.      o PPMore ppmore.doc.pp PUBSCREEN Workbench
  130.  
  131.          Load and display 'ppmore.doc.pp' on the Workbench screen, no
  132.        matter what the default public screen is.
  133.  
  134. - Via the WorkBench:
  135.  
  136.    There are three different ways of using PPMore via the workbench: you
  137. can set the default tool of the (crunched) text file to 'PPMore', you can
  138. single click the PPMore icon and then double click the text file icon or you
  139. can double-click the PPMore icon and pick a file using the file requester.
  140.  
  141.    You set the default tool by single clicking the icon of the text file
  142. and selecting 'Info' from the workbench menu.  You will get a window with
  143. several gadgets in it, click in the string gadget where it says 'Default
  144. tool' and enter 'PPMore'.  PPMore should be in the command path for this to
  145. work, otherwise you must enter the full path so Workbench can find it.  Last
  146. of all select the 'Save' gadget.
  147.  
  148.    Following tooltype is recognized by PPMore (in the text file's icon, not
  149. PPMore's icon):
  150.  
  151.      TABS=n  : Set tabsize for file (default 8).
  152.  
  153.  
  154. NOTE: - PPMore will add '.pp' to the filename when the file wasn't found.
  155.         This is very useful in the WorkBench enviroment: you can make an
  156.         icon for 'text.doc' but name the file 'text.doc.pp'.  Now the
  157.         WorkBench will show an icon with 'text.doc' as name, but if you
  158.         doubleclick it 'text.doc.pp' will be displayed.  (As long as there
  159.         is no 'text.doc' file in the directory!)
  160.       - After reading a file you can press 'L' to load a new file, instead of
  161.         quitting and restarting.
  162.       - In the AmigaDOS template ignore the /M modifier on FILE, PPMore does
  163.         not accept multiple file names (it was needed to let PPMore still
  164.         support the old command line format for compatibility).
  165.  
  166.  
  167. 3. Control
  168. ==========
  169.  
  170.    PPMore can be controlled by keyboard or by intuition gadgets.  To get a
  171. summary of the keyboard commands press <HELP>, the function of the gadgets
  172. shouldn't be hard to understand.
  173.  
  174.    A few notes on printing:
  175.  
  176.    o The printer.device has to be in the DEVS: directory for PPMore to be
  177.      able to print, you should also have correct preferences settings for
  178.      your printer.  Make especially sure the number of lines is correct.
  179.  
  180.    o You can continue to read the text when PPMore is printing (this IS a
  181.      multitasking computer! :-), you *CAN* quit when printing is still in
  182.      progress, printing will continue and all memory will be freed once it
  183.      is finished.
  184.  
  185.    PPMore has a settings menu that allows you to change most of its settings.
  186. You can save these settings, snapshot or unsnapshot PPMore's window.
  187.  
  188.    The settings menu allows you to switch the following things on/off:
  189.  
  190.    o Scroll Text:  This determines if text is scrolled or paged upon doing
  191.      a page up or down.  Note that the shifted keys/gadgets temporarily
  192.      reverse this switch.  By this I mean that if Space does a paged page
  193.      down, pressing Shift Space will do a scrolled page down.
  194.  
  195.    o Wrap Lines:  Line wrap mode determines how lines that are too long will
  196.      be displayed.  If it is on long lines will continue on the next line, if
  197.      it is off they will be cut off.  If a line is cut off an inverse '>'
  198.      will appear on the right edge of the window.
  199.  
  200.    o Line Numbers:  If this is on PPMore will display line number in the
  201.      title of its window instead of a percentage.
  202.  
  203.    You can also change the tab size and the window's font.  Any fixed width
  204. font will work.  'Snapshot Window' will remember PPMore's window position.
  205. 'Unsnapshot Window' will forget the position and will go back to the default
  206. behaviour of opening a window as large as the visible screen size.
  207.  
  208.  
  209. 4. Using PPMore from other programs
  210. ===================================
  211.  
  212.    If you are not a programmer you can skip this section.
  213.  
  214.    PPMore has two special options to make it possible to use it from other
  215. programs.  This way you don't have to include a text displayer in your
  216. program, you just execute PPMore with one (or all) of the following options:
  217.  
  218.    MEMVIEW mem,len,flags[,name]
  219.  
  220.      If you specify this option PPMore will not load a file but instead it
  221.    will display a chunk of memory.  You specify the memory addres and
  222.    length in the command line as well as some flags.  The current version
  223.    only has one flag: PPMORE_FREEMEM = bit 0 of the flag-word = 0x1.
  224.      When this flag is set PPMore will free the memory after it has
  225.    finished (using exec.library/FreeMem()), if it isn't set PPMore will
  226.    just exit and leave the memory alone.  This way your program can start
  227.    PPMore with the PPMORE_FREEMEM flag set and exit before PPMore has ended.
  228.    PPMore will then free the memory instead of your program.
  229.      The address, length and flags must be presented as HEX longwords
  230.    seperated by a comma.  These options can be followed by another comma
  231.    and a string to give the memory chunk a name, if this string is omited
  232.    PPMore will use the name 'memory'.
  233.  
  234.    PUBSCREEN @addr  or  PUBSCREEN @*
  235.  
  236.      Apart from the use of the PUBSCREEN option explained in section 2, you
  237.    can supply a '@' followed by a screen address in HEX or a '*'.  PPMore
  238.    will then open the main window on this screen.  If you specify a '*' the
  239.    frontmost screen will be used.
  240.  
  241.    Examples:
  242.  
  243.      o PPMore MEMVIEW "1A000,1D4E,0,my chunk"
  244.  
  245.          PPMore will open a window 'Listing of my chunk', start
  246.        displaying at address 0x1A000 and stop at address 0x1BD4E.  The
  247.        memory will not be freed after PPMore exits.  Note the use of
  248.        quotes to get a title with spaces in.
  249.  
  250.      o PPMore PUBSCREEN @c2d8a0 MEMVIEW 1A000,1D4E,1,memname
  251.  
  252.          Same as previous but now PPMore will free the memory chunk and
  253.        open the main window on the custom screen with the screen structure
  254.        on address 0xc2d8a0.
  255.  
  256.      o PPMore PUBSCREEN @* myfile
  257.  
  258.          Load and display the file 'myfile' and open window on the front
  259.        screen.
  260.  
  261. NOTE: - If you use PPMore on another screen that is not a public screen
  262.         PPMore will not check if the screen closes!  PPMore should always
  263.         finish before this screen is closed! (There is no problem when you
  264.         open the window on a public screen)
  265.       - Watch out when using these options, it is very easy to crash the Amiga
  266.         if you don't know what you are doing!  Using the PUBSCREEN with
  267.         the name of a public screen is of course 100% safe.
  268.       - The '-S' and '-@' options of older versions of PPMore are still
  269.         supported for compatibility, but you should no longer use them.
  270.  
  271.  
  272.                       As always, I hope you find this program useful!
  273.  
  274.  
  275.                               PROGRAM HISTORY:
  276.  
  277. *****************************************************************************
  278. VERSION 1.0
  279.  
  280.      First release.
  281.  
  282. *****************************************************************************
  283. VERSION 1.1
  284.  
  285.      '.pp' suffix added to filename when file not found, very useful in
  286.        WorkBench enviroment.
  287.      PPMore now also loads encrypted files. (PowerPacker 2.3a or higher)
  288.  
  289. *****************************************************************************
  290. VERSION 1.2
  291.  
  292.      Rewritten some routines in assembler, results in a slightly faster
  293.        and smaller PPMore.
  294.      Keyboard input improved. Autorepeat of keys is ignored so you can keep
  295.        on pressing <page down> without typing it 20 times ahead!
  296.      Gadget input also improved, now handles repeat.
  297.      PPMore now prompts for a filename when double-clicked from WorkBench.
  298.  
  299. *****************************************************************************
  300. VERSION 1.3
  301.  
  302.      PPMore can now be made resident and is reentrant. (provided PPMore is
  303.        not crunched)
  304.      Improved error reporting, the main window only opens when PPMore is
  305.        going to display the file.
  306.      File is checked to see if it is an ASCII (text) file.
  307.      Two new power-options for use of PPMore from other programs:
  308.        -@ to display memory, -S to open window on a custom screen.
  309.      Fast assembler search function added.
  310.      Display position is displayed in titlebar (percentage).
  311.      Goto n% function added, replaced 'Refresh' gadget with this function.
  312.      Decrunching is 15% faster.
  313.      'Exit PPMore' only selected when button is released on top of gadget.
  314.      NO bugs removed because none where found. :-)
  315.      Only about 700 bytes larger than version 1.2!
  316.  
  317. *****************************************************************************
  318. VERSION 1.4
  319.  
  320.      Bug fixed: PPMore 1.3 was not 100% pure, version 1.4 is!
  321.      ASCII check less strict (e.g. now allows files to contain a '©')
  322.      Another 300 bytes shorter than version 1.3 :-)
  323.  
  324. *****************************************************************************
  325. VERSION 1.5
  326.  
  327.      Bug fixed: search/goto window always opened on WorkBench screen.
  328.      Find previous also implemented.
  329.      Load a new file from within PPMore.
  330.      PPMore uses ARP file requester if arp.library is available.
  331.      Line count, as well as goto line.
  332.      Display position as percentage or line number.
  333.      Keypad = movement. (for PC-lovers, yek :-( )
  334.      PPMore now supports all keymaps!! I think especially german and french
  335.        Amiga users will be grateful for this.
  336.      Less than 600 bytes longer than version 1.4 (I love this :-D)
  337.  
  338. *****************************************************************************
  339. VERSION 1.5a
  340.  
  341.      Decrunching is 40% faster, this was a stupid mistake in 1.3 to 1.5,
  342.        I accidently used a slower instead of a faster decrunch routine :-(
  343.  
  344. *****************************************************************************
  345. VERSION 1.5b
  346.  
  347.      The Guru isn't with me lately, after using a slow decruncher in 1.3-1.5
  348.        by accident I now used a fast but faulty decruncher in 1.5a. It
  349.        sometimes didn't decrunch correctly, this has now been fixed. The
  350.        decruncher is still 40% faster than the 1.3-1.5 one. (and it's 2 bytes
  351.        shorter :^D )
  352.  
  353. *****************************************************************************
  354. VERSION 1.6
  355.  
  356.      Bugs in search fixed, didn't work correctly when used in large files and
  357.        sometimes didn't work at all :-(
  358.      Error output goes to the console when you start PPMore from the CLI,
  359.        WorkBench error reporting still in small window as before.
  360.      The ASCII check was made less strict (again).  I got a lot of complaints
  361.        from German users trying to display german documents, this should now
  362.        no longer be a problem.
  363.      If you deactivated the window when PPMore was loading PPMore would hang
  364.        until you resized its window, this has been fixed.  (Actually, I
  365.        worked around this problem, I think it was an Intuition bug :-)
  366.      PgUp, PgDn and the shifted arrow keys now do an immediate page up/down
  367.        without scrolling, SPACE and BS still scroll up/down.
  368.      Changed some things so PPMore runs better on Kickstart 2.0, next
  369.        version of PPMore will probably be a Kick 2.0 only version so I can
  370.        make use of all the new goodies of the new OS :^)
  371.  
  372. *****************************************************************************
  373. VERSION 1.6a
  374.  
  375.      Small update on special request.  Now possible to dump just the visible
  376.        page to the printer instead of the entire file.
  377.  
  378. *****************************************************************************
  379. VERSION 1.7
  380.  
  381.      No Kickstart 2.0 only version yet.  Changed some stuff so PPMore looks
  382.        best on Kick 2.0 and still runs on Kick 1.3.
  383.      Uses the all new powerpacker.library => shorter code :^D
  384.      Starting PPMore from the CLI with a directory as an argument now puts
  385.        up the requester positioned in that directory. Extremely useful once
  386.        you get used to this :^)
  387.      Small bug fixed in search routine, it sometimes missed an occurence.
  388.      PPMore filters out form-feeds and replaces them with <FORM FEED>.
  389.      If you are running Workbench 2.0 PPMore will use the asl.library
  390.        instead of the arp.library (for the filerequester).
  391.      Now fully supports system & screen fonts different than topaz 8.
  392.      Automatic refresh when you resize the window (only on Kick 2.0,
  393.        couldn't be done on 1.3 because of bug in console.device)
  394.      Used different technique to find workbench screen size, using
  395.        NormalDisplayRows no longer seemed to work on 2.0 ?!?!?
  396.  
  397. *****************************************************************************
  398. VERSION 1.8
  399.  
  400.      Nicer new-look 3D gadgets in window border for Kickstart 1.3.
  401.      Line wrap on/off implemented.  If switched off causes all lines to be
  402.        cut off at the right edge of the window.
  403.      Seemed that the asl requester no longer worked on the latest
  404.        Kickstart 2.0 (release V37). Fixed.
  405.      Asl requester doesn't show '.info' icon files.
  406.  
  407. *****************************************************************************
  408. VERSION 2.0
  409.  
  410.      Yep, an AmigaOS 2.0 only version.  Sorry to all the 1.2 & 1.3 users,
  411.        just consider this program yet another reason to upgrade :-)
  412.  
  413.      The filerequester from the arp.library is no longer used/supported.
  414.      PPMore now uses reqtools.library (also by moi) for its requesters.
  415.        Among other things this means a much better filerequester than
  416.        before (with a buffer).  Asl is no longer used, sorry Commodore :-)
  417.      Improved command line format, follows AmigaDOS standard (old command
  418.        line format is still supported for compatibility).
  419.      Workbench tooltypes supported (TABS=n).
  420.      PPMore will open its window on the default public screen.
  421.      The '.pp' suffix is removed from the filename in the window title.
  422.      Fully supports public screens with the PUBSCREEN option, file requester
  423.        will also appear on public screen.
  424.      PPMore will bring the screen it appears on to the front.
  425.      The user is now given the option to read all files, so it is possible
  426.        to force PPMore to display files it considers binary (non-ASCII).
  427.      Tabsize is user-definable, PPMore will expand tabs to up to 8 spaces.
  428.        Files with lots tabs (e.g. source codes) display much nicer now :^)
  429.      Printing has been considerably improved, PPMore now prints in pages
  430.        and puts a title with the filename (excluding path and '.pp') and the
  431.        page number at the top of each page (Page dumps will have no title).
  432.        Tabs are expanded to the same size as in the text window.  Also, it
  433.        is now possible to quit PPMore once printing has started, printing
  434.        will continue in the background.
  435.      Error reporting improved, PPMore will no longer open a small window for
  436.        error messages when loading. When started from CLI, errors are printed
  437.        on the console; when started from Workbench, a requester is used.
  438.      From Workbench, if you single-click PPMore and shift double-click a
  439.        drawer icon, PPShow will open up the filerequester in that drawer.
  440.      If you use 'PPMore <file>' or extend-select <file> from Workbench and
  441.        you invoke the filerequester, it will be positioned in the directory
  442.        <file> is in.
  443.      Directories are expanded to their full pathnames on startup.
  444.      You can now use CTRL-C to quit and CTRL-D to break scripts.
  445.      Bug & quirk fixes:
  446.        All gadgets and text now stay visible on a 1 bitplane screen.
  447.        Formfeeds are now replaced by an inverse L instead of <FORM FEED> and
  448.          may appear anywhere in the file, not just at the start of a line.
  449.        Page up/down without scrolling will no longer refresh window when at
  450.          top/bottom of file.
  451.        PPMore has always used one column less than was available, I finally
  452.          noticed this and fixed it (how come nobody saw this ? :-)
  453.        Keypad now really is movement, aside from PgUp, PgDn, Home and End,
  454.          you may now also use the arrows on the keypad.
  455.        PPMore now returns a returncode of 20 in case of an error or if ended
  456.          by CTRL-D.
  457.      Removed read in low memory when the close gadget was used.  Thanks to
  458.        the enforcer I was able to fix a VERY obscure bug :-)
  459.      PPMore now contains a version string.  Use 'Version PPMore' to display
  460.        the internal version number.
  461.      Shift 'Next Page' and 'Prev Page' now do an immediate page up/down
  462.        without scrolling, just like Shift Arrow Up, Shift Arrow Down.
  463.      Window has been changed to simple refresh, saves chip memory.
  464.      Added a Project menu with 'Load File...' and 'Quit' items.
  465.      A Settings menu has also been added to the window.  It allows you to
  466.        change and save several settings.
  467.      The position of the window can be snapshot (Settings menu).
  468.      Scrolling can be switched off (Settings menu), so 'Next Page',
  469.        'Prev Page', Space and Backspace do an immediate page up/down.
  470.        If scrolling is off the shifted gadgets/keypresses will page
  471.        with scrolling (instead of without).
  472.      The font used to print the text can be changed (in the Settings menu).
  473.      PPMore's window will only cover the visible portion of the screen, it
  474.        will no longer open a window that is as big as the whole screen.
  475.        This is only true if the window has NOT been snapshot.
  476.      Gadgets use a (private) boopsi image class, much nicer :-)
  477.  
  478. *****************************************************************************
  479.  
  480. PPMore 2.0 written by Nico François (Yes, Nico is my first name :-)
  481.            thanks to Holger Lubitz for the many bug reports :^) and all the
  482.                                    useful suggestions.
  483.  
  484. (c) 1991 Nico François
  485.  
  486.                                    //
  487.                        Thanks to \X/ Amiga for being the best computer ever!
  488.  
  489.